﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Specialized;

namespace BugTracker.WebUX.Admin.Shared
{
    public partial class UCAdminSideMenu : System.Web.UI.UserControl
    {
        private Menu menu = new Menu();
        //private TreeView menuTree = new TreeView();

        protected void Page_Load(object sender, EventArgs e)
        {
            BuildSiteMapDS();
        }

        private void BuildSiteMapDS()
        {
           // //menu.Orientation = Orientation.Vertical;
           // //menu.ID = "adminMenu";
           // //menuPanel.Controls.Clear();
           // XmlSiteMapProvider provider = new XmlSiteMapProvider();
           // NameValueCollection nvp = new NameValueCollection(1);
           // nvp.Add("siteMapFile", "~/Admin/Admin.sitemap");
           // provider.Initialize("provider", nvp);
           // provider.BuildSiteMap();
           // SiteMapDataSource siteMapDS = new SiteMapDataSource();
           // siteMapDS.ShowStartingNode = false;
           // siteMapDS.Provider = provider;
           // menuTree.DataSource = siteMapDS;
           // menuTree.DataBind();
           //// menuPanel.Controls.Add(menuTree);
        }
    }
}